package com.common.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName(value = "bl_menu")
public class Menu {

    @TableId
    private long menuId;

    @ApiModelProperty(name = "菜单名称")
    private String name;

    @ApiModelProperty(name = "权限标识")
    private String permission;

    @ApiModelProperty(name = "备注")
    private String remarke;

    @ApiModelProperty(name = "请求方式")
    private String type;

    @ApiModelProperty(name = "创建时间")
    private String createTime;

    private String requestPerm;

    public String getRequestPerm() {
        return this.getPermission() + " " + this.getType();
    }
}
